package com.macaline.framemarker.dataBase.framework.bean;

import java.util.LinkedList;

/**
 * 字段处理列表
 * @param <T>
 */
public class ColumnList<T> extends LinkedList {

    /**
     * 将列表内的值以逗号隔开
     * @return
     */
    public String getColumnsSql(){
        StringBuffer buffer = new StringBuffer();
        this.forEach((item) -> {
            buffer.append(item + ", ");
        });
        buffer.setLength(buffer.length() - 2);
        return buffer.toString();
    }

}
